package com.xiaoxiang.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxiang.auth.dao.MenuDao;
import com.xiaoxiang.auth.dto.MenuDo;
import com.xiaoxiang.auth.entity.Menu;
import com.xiaoxiang.auth.service.MenuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Menu)表服务实现类
 *
 * @author haha
 * @since 2022-02-15 11:10:36
 */
@Service("menuService")
public class MenuServiceImpl extends ServiceImpl<MenuDao, Menu> implements MenuService {


    @Override
    public List<MenuDo> queryAllByRoleId(Long roleId) {
        return this.baseMapper.queryAllByRoleId(roleId);
    }
}
